﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 消息发送
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2018-08-28 
    /// </summary>
    [Table("WECHAT_QYMESSAGE")]
    public class QYMessageEntity
    {
        /// <summary>
        /// 自然主键
        /// </summary>
        [Key]
        [Column("F_ID")]
        public string Id { get; set; }
        /// <summary>
        /// 消息类型
        /// </summary>
        [Column("F_MSGTYPE")]
        public int? MsgType { get; set; }
        /// <summary>
        /// 全员
        /// </summary>
        [Column("F_ALL")]
        public int? All { get; set; }
        /// <summary>
        /// 保密状态
        /// </summary>
        [Column("F_SAFE")]
        public int? Safe { get; set; }
        /// <summary>
        /// 成员主键集
        /// </summary>
        [Column("F_TOUSERID")]
        public string ToUserId { get; set; }
        /// <summary>
        /// 部门主键集
        /// </summary>
        [Column("F_TOPARTY")]
        public string ToParty { get; set; }
        /// <summary>
        /// 标签主键集
        /// </summary>
        [Column("F_TOTAG")]
        public string ToTag { get; set; }
        /// <summary>
        /// 企业应用主键
        /// </summary>
        [Column("F_AGENTID")]
        public string AgentId { get; set; }
        /// <summary>
        /// 媒体主键
        /// </summary>
        [Column("F_MEDIAID")]
        public string MediaId { get; set; }
        /// <summary>
        /// 图文标题
        /// </summary>
        [Column("F_TITLE")]
        public string Title { get; set; }
        /// <summary>
        /// 图文作者
        /// </summary>
        [Column("F_AUTHOR")]
        public string Author { get; set; }
        /// <summary>
        /// 原文链接
        /// </summary>
        [Column("F_CONTENTSOURCEURL")]
        public string ContentSourceUrl { get; set; }
        /// <summary>
        /// 图文内容
        /// </summary>
        [Column("F_CONTENT")]
        public string Content { get; set; }
        /// <summary>
        /// 摘要
        /// </summary>
        [Column("F_ABSTRACT")]
        public string Abstract { get; set; }
        /// <summary>
        /// 封面状态
        /// </summary>
        [Column("F_SHOWCOVERPIC")]
        public int? ShowCoverPic { get; set; }
        /// <summary>
        /// 发送时间
        /// </summary>
        [Column("F_SENDDATE")]
        public DateTime? SendDate { get; set; }
        /// <summary>
        /// 发送人
        /// </summary>
        [Column("F_SENDUSERID")]
        public string SendUserId { get; set; }
        /// <summary>
        /// 文本内容
        /// </summary>
        [Column("F_TXTCONTENT")]
        public string TXTContent { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        [Column("F_FILEJSON")]
        public string FileJson { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        [Column("F_SORTCODE")]
        public long? SortCode { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Column("F_ENABLEDMARK")]
        public int? EnabledMark { get; set; }
        /// <summary>
        /// 无效用户
        /// </summary>
        [Column("F_INVALIDUSER")]
        public string InvalidUser { get; set; }
        /// <summary>
        /// 无效机构
        /// </summary>
        [Column("F_INVALIDPARTY")]
        public string InvalidParty { get; set; }
        /// <summary>
        /// 无效标签
        /// </summary>
        [Column("F_INVALIDTAG")]
        public string InvalidTag { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Column("F_DESCRIPTION")]
        public string Description { get; set; }
        /// <summary>
        /// 图片链接
        /// </summary>
        [Column("F_PICURL")]
        public string PicUrl { get; set; }
    }
}